package com.cjkj.equipment.mapper;

import com.cjkj.equipment.domain.EquipmentUsageRecords;
import org.apache.ibatis.annotations.Param;

/**
 * 设备使用记录Mapper接口
 * 
 * @author cjkj
 * @date 2024-08-15
 */
public interface EquipmentUsageRecordsMapper 
{

    EquipmentUsageRecords selectEquipmentInUse(String equipmentNo);

    EquipmentUsageRecords selectInUseByPhone(@Param("phone") String phone, @Param("equipmentType") String equipmentType);

    EquipmentUsageRecords getEquipmentInUse(@Param("equipmentNo") String equipmentNo,
                                            @Param("equipmentType") String equipmentType,
                                            @Param("phone") String phone);

    /**
     * 新增设备使用记录
     * 
     * @param equipmentUsageRecords 设备使用记录
     * @return 结果
     */
    int insertEquipmentUsageRecords(EquipmentUsageRecords equipmentUsageRecords);

    /**
     * 修改设备使用记录
     * 
     * @param equipmentUsageRecords 设备使用记录
     * @return 结果
     */
    int updateEquipmentUsageRecords(EquipmentUsageRecords equipmentUsageRecords);

}
